<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- Bootstrap CSS-->
    <%@include file="../assets/public.jsp"%>
    <title>用户详情</title>

</head>
<body>
<%@include file="../assets/header.jsp"%>

<div class="d-flex align-items-stretch">
    <!-- Sidebar Navigation-->
    <%@include file="../assets/sidebar.jsp"%>
    <!-- Sidebar Navigation end-->
    <div class="page-content">
        <div class="page-header">
            <div class="container-fluid">
                <h2 class="h5 no-margin-bottom">用户详情</h2>
            </div>
        </div>
        <section class="no-padding-bottom">
            <!-- Form Elements -->
            <div class="col-lg-12">
                <div class="block">
                    <div class="title"><strong>TA的头像</strong></div>
                    <div class="avatar">
                        <c:if test="${sessionScope.look_user.pic ==''||sessionScope.look_user.pic ==null}">
                            <img src="${pageContext.request.contextPath}/img/avatar-6.jpg" alt="加载中..." style="width: 150px;height: 150px" class="img-thumbnail rounded-circle">
                        </c:if>
                        <c:if test="${sessionScope.look_user.pic !=''&&sessionScope.look_user.pic !=null}">
                            <img src="${sessionScope.look_user.pic}" alt="加载中..." style="width: 150px;height: 150px" class="img-thumbnail rounded-circle">
                        </c:if>
                    </div>
                    <!--<div style="margin-top: 15px" class="text-left">-->
                        <!--&lt;!&ndash; 用于展示上传文件名的表单 &ndash;&gt;-->
                        <!--<input id="showname" onclick="makeThisfile()" type="button" class="btn btn-primary" value="更换头像">-->
                        <!--&lt;!&ndash; 真正的文件上传表单 &ndash;&gt;-->
                        <!--<input name="realFile" type="file" id="myFile" style="display: none" />-->
                    <!--</div>-->
                    <div class="title">
                        <br>
                        <p class="h5"><strong>粉丝数：</strong><span>&nbsp;</span><span>&nbsp;</span><span>${sessionScope.look_focusCount}</span></p>
                        <br>
                        <p class="h5"><strong>被看数：</strong><span>&nbsp;</span><span>&nbsp;</span><span>${sessionScope.look_user.look}</span></p>
                        <br>
                    </div>
                    <div class="title"><strong>TA的数据</strong></div>
                    <div class="block-body">
                        <form class="form-horizontal">
                            <div class="form-group row">
                                <label class="col-sm-3 form-control-label">真实姓名</label>
                                <div class="col-sm-9">
                                    <c:if test="${sessionScope.look_user.realName ==''||sessionScope.look_user.realName ==null}">
                                        <input disabled="disabled" type="text" value="${sessionScope.look_user.username}" class="form-control">
                                    </c:if>
                                    <c:if test="${sessionScope.look_user.realName !=''&&sessionScope.look_user.realName !=null}">
                                        <input disabled="disabled" type="text" value="${sessionScope.look_user.realName}" class="form-control">
                                    </c:if>
                                </div>
                            </div>
                            <div class="line"></div>
                            <div class="form-group row">
                                <label class="col-sm-3 form-control-label">所属部门</label>
                                <div class="col-sm-9">
                                    <input disabled="disabled" type="text" value="${sessionScope.look_userDeptName}" class="form-control">
                                </div>
                            </div>
                            <div class="line"></div>
                            <div class="form-group row">
                                <label class="col-sm-3 form-control-label">电话</label>
                                <div class="col-sm-9">
                                    <c:if test="${sessionScope.look_user.isSecret == '1'}">
                                        <input disabled="disabled" type="text" value="不告诉你" name="password" class="form-control">
                                    </c:if>
                                    <c:if test="${sessionScope.look_user.isSecret == '0'}">
                                        <input disabled="disabled" type="text" value="${sessionScope.look_user.phone}" name="password" class="form-control">
                                    </c:if>
                                </div>
                            </div>
                            <div class="line"></div>
                            <div class="form-group row">
                                <label class="col-sm-3 form-control-label">年龄</label>
                                <div class="col-sm-9">
                                    <c:if test="${sessionScope.look_user.isSecret == '1'}">
                                        <input disabled="disabled" type="text" placeholder="不告诉你" class="form-control">
                                    </c:if>
                                    <c:if test="${sessionScope.look_user.isSecret == '0'}">
                                        <input disabled="disabled" type="text" placeholder="${sessionScope.look_user.age}" class="form-control">
                                    </c:if>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-3 form-control-label">性别 </label>
                                <div class="col-sm-9">

                                    <div class="i-checks">
                                        <c:if test="${sessionScope.look_user.gender== 1}">
                                            <input disabled="disabled" id="radioCustom1" type="radio" value="1" checked="checked" name="sex" class="radio-template">
                                            <label for="radioCustom1">男</label>
                                            <span>&nbsp;</span><span>&nbsp;</span><span>&nbsp;</span>
                                            <input disabled="disabled" id="radioCustom2" type="radio" value="0" name="sex" class="radio-template">
                                            <label for="radioCustom2">女</label>
                                        </c:if>
                                        <c:if test="${sessionScope.look_user.gender== 0}">
                                            <input disabled="disabled" id="radioCustom1" type="radio" value="1" name="sex" class="radio-template">
                                            <label for="radioCustom1">男</label>
                                            <span>&nbsp;</span><span>&nbsp;</span><span>&nbsp;</span>
                                            <input disabled="disabled" id="radioCustom2" type="radio" value="0" checked="checked" name="sex" class="radio-template">
                                            <label for="radioCustom2">女</label>
                                        </c:if>
                                    </div>
                                </div>


                            </div>
                            <div class="line"></div>
                            <div class="form-group row">
                                <label class="col-sm-3 form-control-label">注册时间</label>
                                <div class="col-sm-9">
                                    <input type="text" disabled="" placeholder="${sessionScope.look_user.registerTime}" class="form-control">
                                </div>
                            </div>
                            <div class="line"></div>
                            <div class="form-group row">
                                <label class="col-sm-3 form-control-label">登录时间</label>
                                <div class="col-sm-9">
                                    <input type="text" disabled="" placeholder="${sessionScope.look_user.loginTime}" class="form-control">
                                </div>
                            </div>
                            <div class="line"></div>

                            <div class="form-group row">
                                <label class="col-sm-3 form-control-label">是否私密 <br><small class="text-primary">默认为否，可以不设置</small></label>
                                <div class="col-sm-9">
                                    <div class="i-checks">
                                        <c:if test="${sessionScope.look_user.isSecret == '1'}">
                                            <input disabled="disabled" id="checkboxCustom1" checked="checked" type="checkbox" value="" class="checkbox-template">
                                            <label for="checkboxCustom1">是否私密</label>
                                        </c:if>
                                        <c:if test="${sessionScope.look_user.isSecret == '0'}">
                                            <input disabled="disabled" id="checkboxCustom1" type="checkbox" value="" class="checkbox-template">
                                            <label for="checkboxCustom1">是否私密</label>
                                        </c:if>
                                    </div>

                                </div>


                            </div>
                            <div class="line"></div>
                            <!--<div class="text-center">-->
                                <!--<input type="submit" class="btn btn-primary" value="保存">-->
                            <!--</div>-->
                        </form>
                    </div>
                </div>
            </div>
        </section>

        <%@include file="../assets/footer.jsp"%>
    </div>
</div>

</body>
</html>